home *** CD-ROM | disk | FTP | other *** search
- ;*========================================================================
- ;* VDIFAST Public Domain VDI bindings.
- ;*========================================================================
-
-
- ;*------------------------------------------------------------------------
- ;*
- ;*------------------------------------------------------------------------
-
- globl _v_bit_image
- _v_bit_image:
-
- ; .cargs #8,handle.w,fname.l,aspect.w,xscale.w,yscale.w,halign.w,valign.w,pxy.l
-
- handle = 8
- fname = 10
- aspect = 12
- xscale = 14
- yscale = 16
- halign = 18
- valign = 20
- pxy = 22
-
- link a6,#0
-
- move.l fname(a6),a0 ;* Get the string pointer.
- jsr vstr_stack ;* Go integerize and stack string.
-
- move.w valign(a6),-(sp) ;* put other intin parms on stack
- move.w halign(a6),-(sp) ;* before the stacked filename
- move.w yscale(a6),-(sp) ;* string.
- move.w xscale(a6),-(sp)
- move.w aspect(a6),-(sp)
-
- move.l sp,a0 ;* make intin pointer, increase
- addq.w #5,d0 ;* intin count by # of fixed parms.
-
- ; VContrl #5,#23,,d0
- move.w handle(a6),-(sp) ; contrl[6]
- move.w #23,-(sp) ; contrl[5]
- subq.l #2,sp ; contrl[4]
- move.w d0,-(sp) ; contrl[3]
- subq.l #2,sp ; contrl[2]
- clr.w -(sp) ; contrl[1]
- move.w #5,-(sp) ; contrl[0]
-
- lea -12(sp),sp ;* -> ptsout, intout, ptsin
- move.l a0,-(sp) ;* -> intin
- pea 16(sp) ;* -> contrl
-
- jmp vdicall
-
- end
-